/*
 * @Description:
 * @Author: 小雨
 * @Date: 2024-09-14 01:08:57
 * @LastEditTime: 2024-09-14 01:26:51
 * @LastEditors: 小雨
 */
import Mock from 'mockjs';

let data_success = {
    status: 'ok', //表示账号密码正确，登录成功
};

let data_error = {
    status: 'error', //表示账号密码错误，登录失败
};

export default Mock.mock('/api/login/account', 'post', (req) => {
    let req_data = JSON.parse(req.body);
    console.log(req_data);

    if (req_data.username == '123456@qq.com' && req_data.password == 'Az123456*') {
        console.log(1);

        return data_success;
    }
    return data_error;
});
